import { type PeronInter, type persons } from "@/types";

import { onMounted, reactive } from "vue";
export default function () {
    let person: PeronInter = {
        name: "asdmin",
        age: 22,
    };
    let pes = reactive<persons>([
        {
            name: "asdmin",
            age: 22,
        },
        {
            name: "asdmin",
            age: 22,
        },
    ]);

    let list=  withDefaults(defineProps<{ list: persons }>(), {
        list: () => [{ name: "admin", age: 12 }, { name: "admin11", age: 1222 }],
    });

 

    onMounted(() => {
        console.log("挂载完毕！！");

    });

    return {person,list}
}